package com.exam.service.serviceImpl;

import com.exam.entity.ExamUser;
import com.exam.mapper.ExamUserMapper;
import com.exam.service.ExamUserService;

import java.util.List;

public class ExamUserServiceImpl implements ExamUserService {
    private ExamUserMapper examUserMapper;

    public void setExamUserMapper(ExamUserMapper examUserMapper) {
        this.examUserMapper = examUserMapper;
    }

    @Override
    public int add_exam_user(List<ExamUser> examUsers) {
        return examUserMapper.add_exam_user(examUsers);
    }

    @Override
    public List<ExamUser> get_not_finish_exam_by_u_id(int u_id) {
        return examUserMapper.get_not_finish_exam_by_u_id(u_id);
    }

    @Override
    public int update_exam_user_by_eu_id(int eu_id) {
        return examUserMapper.update_exam_user_by_eu_id(eu_id);
    }

    @Override
    public List<ExamUser> get_finish_exam_by_u_id(int u_id) {
        return examUserMapper.get_finish_exam_by_u_id(u_id);
    }

    @Override
    public List<ExamUser> get_not_finish_exam_user_by_e_id(int e_id) {
        return examUserMapper.get_not_finish_exam_user_by_e_id(e_id);
    }

    @Override
    public List<ExamUser> get_finish_exam_user_by_e_id(int e_id) {
        return examUserMapper.get_finish_exam_user_by_e_id(e_id);
    }

    @Override
    public int del_exam_user_by_eu_id(int eu_id) {
        return examUserMapper.del_exam_user_by_eu_id(eu_id);
    }

    @Override
    public ExamUser get_exam_result_by_eu_id(int eu_id) {
        return examUserMapper.get_exam_result_by_eu_id(eu_id);
    }

    @Override
    public int statistic1(int e_id) {
        return examUserMapper.statistic1(e_id);
    }

    @Override
    public int statistic2(int e_id) {
        return examUserMapper.statistic2(e_id);
    }

    @Override
    public int statistic3(int e_id) {
        return examUserMapper.statistic3(e_id);
    }

    @Override
    public int statistic4(int e_id) {
        return examUserMapper.statistic4(e_id);
    }

    @Override
    public int statistic5(int e_id) {
        return examUserMapper.statistic5(e_id);
    }

    @Override
    public List<ExamUser> statistic6(int e_id) {
        return examUserMapper.statistic6(e_id);
    }

    @Override
    public int statistic7(int e_id) {
        return examUserMapper.statistic7(e_id);
    }

    @Override
    public List<ExamUser> get_score_by_u_id(int u_id) {
        return examUserMapper.get_score_by_u_id(u_id);
    }
}
